// Vue.config.js 配置选项

module.exports = {
    publicPath: "./",

    outputDir: "dist",

    assetsDir: "static",
    transpileDependencies: [ /* string or regex */ ],

    productionSourceMap: false,
    devServer: {
        open: true,
        host: 'localhost',
        port: 8080,
        https: false,
    },
    configureWebpack: { //移除已从cdn引入的组件，不打包以下命名的内容
        externals: {
            'vue': 'Vue',
            'vue-router': 'VueRouter',
            'element-ui': 'ELEMENT',
            'echarts': 'echarts',
            'VueCookies': 'VueCookies',
            'axios': 'axios',
        },
    },
    chainWebpack: config => {
        // 移除 prefetch 插件
        config.plugins.delete('prefetch')
    },

}